package cn.kongwg.demo03;

import java.time.LocalDate;
import java.util.Arrays;

/**
 * @author kongwg
 * @create 2021-05-27 19:55
 */
public class IntenDemo {
    private static ThreadLocal local = new ThreadLocal();

    public static void main(String[] args) {
        local.set(1);
        local.get();
        local.remove();
    }

    private static void mapao() {
        int []arr= {3,2,8,4,7};//创建数组
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr.length-i-1; j++) {
                if (arr[j] > arr[j + 1]) {
                    int temp = arr[j];
                    arr[j] = arr[j+1];
                    arr[j+1] = temp;
                }
            }

        }
        System.out.println(Arrays.toString(arr));
    }
}
